package 预科0104UserMessage_Q4;

import java.io.Serializable;

public class UserMessage implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 955179213380817227L;
	private String type;
	private User user;

	public UserMessage(String type, User user) {
		super();
		this.type = type;
		this.user = user;
	}


	public User getUser() {
		return user;
	}


	public void setUser(User user) {
		this.user = user;
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}

	static class User implements Serializable{
		/**
		 * 
		 */
		private static final long serialVersionUID = -8778519643412904021L;
		private String name;
		private String password;
		public User(String name, String password) {
			super();
			this.name = name;
			this.password = password;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		
	}


}
